<?php
$config = array(
	//'配置项'=>'配置值'
	'APP_DEBUG' => true,
	'URL_MODEL'	=>	3,
	'DB_TYPE'=> 'mysql', // 数据库类型
	'DB_HOST'=> 'localhost', // 数据库朋务器地址
	'DB_NAME'=>'lemoncn_TDX', // 数据库名称 
	'DB_USER'=>'lemoncn_TDX', // 数据库用户名
	'DB_PWD'=>'zaqmko', // 数据库密码
	'DB_PORT'=>'3306', // 数据库端口 
	'DB_PREFIX'=>'think_', // 数据表前缀
	'SESSION_NAME'=>'TDX',
	//'HTML_CACHE_ON'=>false,
	//'TMPL_CACHE_ON'=>false,
	//'ACTION_CACHE_ON'=>false
	'TMPL_CACHE_TIME'	=>	0
);
$privilege = array();
$control = array();
$connection = mysql_connect($config['DB_HOST'],$config['DB_USER'],$config['DB_PWD']);
mysql_select_db('lemoncn_TDX', $connection);
$resultPrivilege = mysql_query('SELECT * FROM think_privilege', $connection);
$resultPrivilegeControl = mysql_query('SELECT * FROM think_privilegectrl', $connection);
while($i = mysql_fetch_array($resultPrivilege))
{
	$privilege[$i['name']] = $i['PID'];
}
while($i = mysql_fetch_array($resultPrivilegeControl))
{
	$control[$i['name']] = $i['ID'];
}

return array_merge($config, $privilege, $control);
?>